<%@ page pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="pageContent">
    <form method="post" action="background/add" onsubmit="return iframeCallback(this, navTabAjaxDone);" class="pageForm required-validate" enctype="multipart/form-data" onsubmit="return iframeCallback(this);">
        <div class="pageFormContent" >
            <p>
                <label>装修图名称：</label>
                <input name="styleName" class="required" type="text" size="30"  alt="请输入名称"/>
            </p>
            <p>
                <label>创始人：</label>
                <input name="styleCompany" class="required" type="text" size="30"  alt="请输入名称"/>
            </p>

            <p>
                <label>指数：</label>
                <input type="text"  value="" name="styleNumber" class="textInput">
            </p>

            </br></br>
               </div>
        <div>
                <label>风格小类：</label>
                <c:forEach items="${lable}" var="list">
                    <c:if test="${list.styleBigType == 1}">
                <input type="checkbox" name="laber" value="${list.styleId}"/><span>${list.styleLaber}</span>
                    </c:if>
                </c:forEach>
            <</br>

                <label>空间小类：</label>
                <c:forEach items="${lable}" var="list">
                    <c:if test="${list.styleBigType == 2}">
                        <input type="checkbox" name="laber" value="${list.styleId}"/><span>${list.styleLaber}</span>
                    </c:if>
                </c:forEach>

            </br>

                <label>局部小类：</label>
                <c:forEach items="${lable}" var="list">
                    <c:if test="${list.styleBigType == 3}">
                        <input type="checkbox" name="laber" value="${list.styleId}"/><span>${list.styleLaber}</span>
                    </c:if>
                </c:forEach>

            </br>

                <label>户型小类：</label>
                <c:forEach items="${lable}" var="list">
                    <c:if test="${list.styleBigType == 4}">
                        <input type="checkbox" name="laber" value="${list.styleId}"/><span>${list.styleLaber}</span>
                    </c:if>
                </c:forEach>
            </br>

        </div>
        <p>
        <div class="unit" >
            <label>上传多个文件：</label>
            <ul id="upload-preview" class="upload-preview"></ul>
            <div class="upload-wrap" rel="#upload-preview">
                <input type="file" name="file2" accept="image/*" multiple="multiple">
            </div>
        </div>
      </p>
        <div class="formBar">
            <ul>
                <!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
                <li>
                    <div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
                </li>
            </ul>
        </div>
    </form>
</div>
<%--&lt;%&ndash;<script>&ndash;%&gt;--%>
<%--&lt;%&ndash;$("#pro").change(function () {&ndash;%&gt;--%>
    <%--&lt;%&ndash;var pro = $("#pro");&ndash;%&gt;--%>

    <%--&lt;%&ndash;$.get("seclable/findById",{"secLaberId":pro.val()},function (data) {&ndash;%&gt;--%>

        <%--&lt;%&ndash;var html_string = '';&ndash;%&gt;--%>
        <%--&lt;%&ndash;jsonStr = typeof jsonStr === 'string' ? $.parseJSON(jsonStr ) : jsonStr;&ndash;%&gt;--%>
        <%--&lt;%&ndash;$.each(jsonStr,function(idx,obj){&ndash;%&gt;--%>

            <%--&lt;%&ndash;html_string += '<label><input type="checkbox" value="'+obj.styleId+'" /><span>'+obj.styleLaber+'</span></label>';&ndash;%&gt;--%>
        <%--&lt;%&ndash;});&ndash;%&gt;--%>
        <%--&lt;%&ndash;alert(html_string)&ndash;%&gt;--%>
<%--&lt;%&ndash;//        $("body").append(html_string)&ndash;%&gt;--%>
    <%--&lt;%&ndash;},"json")&ndash;%&gt;--%>
<%--&lt;%&ndash;})&ndash;%&gt;--%>


<%--</script>--%>


